package cn.edu.ctbu.studentmanage.repository;

import cn.edu.ctbu.studentmanage.domain.Student;
import cn.edu.ctbu.studentmanage.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository <Teacher,Integer>{

    /**
     * 根据教师学号进行查询
     * @param tno
     * @return
     */
    Teacher findTeacherByTno(String tno);

    /**
     * 根据教师学号和教师密码进行查询
     * @param tno
     * @param tpassword
     * @return
     */
    List<Teacher> findByTnoAndTpassword(String tno, String tpassword);

}
